import sys
sys.path.append("../")
from frameworks.utils.FetchHttp import *
import time
import requests
from frameworks.cores.Config import *
from services.msg.FeiShuService import *

class MsgController():
    def __init__(self):
        basepath = os.path.join(os.path.dirname(os.path.dirname(__file__)))
        self.conf = Config(basepath)
        self.feishuService = FeiShuService()
        self.feishuService.setConf(self.conf.getFeiShu())

    def sendFeiShu(self,msg):
        self.feishuService.sendMsg(msg)

